package com.yz.core.string;

public class StringConcat {
    public static void main(String[] args) {
        String s1 = new String("do");
        s1.intern();
        String s2 = "do";
        System.out.println(s1 == s2);//false
        String s3 = new String("12") + new String("34");
        s3.intern();
        String s4 = "1234";
        System.out.println(s3 == s4);//true
    }
}
